package com.ecmap.hongyun.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ecmap.hongyun.dao.IUserDAO;
import com.ecmap.hongyun.model.User;
import com.ecmap.hongyun.service.IUserService;
import com.ecpark.commons.base.BaseServiceHandler;
import com.ecpark.commons.utils.SqlConditionObject;

@Service
public class UserServiceImpl extends BaseServiceHandler implements IUserService {

	@Resource
	private IUserDAO userDAO;
	
	@Override
	protected List<SqlConditionObject> getSqlConditionList( Map<String, String[]> params) {
		// TODO Auto-generated method stub
		return null;
	}


	@Override
	public User findUserByUsername(String username) {
		return userDAO.findUserByUsername(username);
	}


	@Override
	public User findUserById(Long id) {
		return userDAO.findUserById(id);
	}


	@Override
	public void updateUser(User user) {
		userDAO.updateUser(user);
	}

}
